﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/admin.Master" AutoEventWireup="true" CodeBehind="orders.aspx.cs" Inherits="Player.Admin.orders" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../My97DatePicker/WdatePicker.js"></script>
    <style>
        .ordersbos #tb2 {
            margin-left:20px;
            width: 800px;
            border-collapse: collapse;
            margin-top:10px;
            margin-bottom:10px;
            border-radius:5px;
            box-shadow:0 0px 2px 2px #d3bdbd;
            overflow:hidden;
        }
        #weizhi {
            font-size:9px;
            padding-left:20px;
            padding-top:20px;
        }
        .selelogo1,.selelogo2 {
            margin-bottom:20px;
            width:100%;
            height:30px;
            background-color:#92d4ed;
            padding-left:20px;
            border-radius:5px;
            line-height:30px;
            font-weight:bolder;
            color:#444044;
            box-shadow:0 0 2px #000;
        }
        #weizhi .tubiao {
            margin-left:75%;
            width:30px;
            height:30px;
            margin-bottom:-12px;
        }
         .selelogo2 {
            margin-top:20px;
        }
         #seletxt {
            padding-left:20px;
        }
        .tubiao {
            width:20px;
            height:20px;
            margin-bottom:-4px;
            margin-left:5px;
            outline:none;
        }
        .btnsousuo {
            width:25px;
            height:25px;
            margin-bottom:-6px;
            margin-left:4px;
            outline:none;
            margin-right:20px;
        }
        #seletxt div {
            padding-left:180px;
        }
       .ordersbos #tb2 th {
            padding:5px;
            background-color: lightblue;
        }

       .ordersbos #tb2 tr:nth-child(2n) {
            background-color: #dff0d8;
        }

       .ordersbos #tb2 tr:nth-child(2n-1) {
            background-color: #f5f5f5;
        }

       .ordersbos #tb2 tr td {
            padding: 10px;
            text-align: center;
        }

       .ordersbos #tb2 tr:hover {
            background-color: #f1dddd;
        }
        .ordersbos .tb1 {
            margin:auto;
        }
        fieldset {
            margin-left: 20px;
            width:758px;
            padding:20px;
            border-radius:5px;
            border:1px solid #000;
            box-shadow:0 0px 2px 2px #d3bdbd;
        }
        .fm {
            width:760px;
            height:120px;
            text-align:center;
        }
        .fmlegend{
            margin-left:540px;
            font-size:18px;
            font:bolder
        }
       .ordersbos .bc {
            outline:none;
            width:100px;
            height:30px;
            margin-left:80px;
            background-color:#5c8beb;
            color:#fff;
            border:none;
            border-top-left-radius:50px;
            border-bottom-right-radius:50px;
            outline:none;
            box-shadow:0 0 2px #000;
            cursor:pointer;
        }
       .ri {
            text-align:right;
        }
        .tdright_span {
            margin-left:80px;
        }
        .radosex {
            margin-right:30px;
            margin-left:30px;
        }
       .selename {
            border: 1px solid #e7e7e7;
            border-radius:3px;
            width: 300px;
            height: 25px;
            box-shadow:0 0 1px #000;
        }
       .selebtn {
           outline:none;
            background-color:#5c8beb;
            width: 60px;
            height: 25px;
            border-radius: 5px;
            color: #ffffff;
            border: none;
            box-shadow:0 0 2px #000;
            cursor:pointer;
        }

       .ordersbos .orderstop {
            margin-top: 25px;
            margin-left: 25px;
        }
        .ordersbos .txt {
            border-radius:5px;
        }
       .btnadd {
           outline:none;
           border-radius:5px;
            border:none;
            width: 60px;
            height: 25px;
            color: #ffffff;
            background-color:#5c8beb;
            box-shadow:0 0 2px #000;
            cursor:pointer;
            margin-left:270px;
        }
        .auto-style4 {
            text-align: right;
            height: 15px;
        }
        .auto-style5 {
            height: 34px;
        }
        .auto-style6 {
            height: 15px;
        }
   </style>
    <link href="../CSS/后台管理/deletealter.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="pl_delete" runat="server" Visible="False">
                <div class="pldelete">
                    <h4>温馨提示</h4>
                    <hr />
                    <div class="pl_div1">
                        <p><img width="30px" height="30px" src="../Player图片/图标/后台管理/gantan.png" />你确定要删除吗？</p>
                    </div>
                    <div class="pl_div2">
                        <span><asp:Button ID="btn_delequxiao" CssClass="selebtn" OnClick="btn_delequxiao_Click" runat="server" Text="取消" /></span>
                        <span><asp:Button ID="btn_delequedin" CssClass="selebtn" OnClick="btn_delequedin_Click" runat="server" Text="确定" /></span>
                    </div>
                </div>
            </asp:Panel>
    <div class="ordersbos">
        <div id="weizhi">
            后台管理 >> 订单管理
            <asp:ImageButton ID="imgbtnsx" OnClick="imgbtnsx_Click" CssClass="tubiao" ImageUrl="~/Player图片/图标/后台管理/shuaxin.png" runat="server" />
        </div>
        <div class="orderstop">
            <div class="selelogo1">
                操作区<img class="tubiao" src="../Player图片/图标/后台管理/caozuo.png" />
            </div>
            <div id="seletxt">
                <span>请输入用户名:</span>
                <span><asp:TextBox ID="txt_usid"  CssClass="selename" runat="server"></asp:TextBox></span>
                <span>
                    <asp:ImageButton ImageUrl="../Player图片/图标/后台管理/sousuo.png" OnClick="imgbtn_Click" CssClass="btnsousuo" ID="imgbtn" runat="server" />
                </span>
                <span>
                    <asp:Button ID="btn_add" runat="server" OnClick="btn_add_Click" CssClass="btnadd" Text="添加订单" />
                </span>
                <div>
                    <asp:Image CssClass="tubiao" ImageUrl="../Player图片/图标/后台管理/weizhaodao.png" ID="img_weizhaodao" runat="server" Visible="False" />
                    <asp:Label ID="lbl_ChaXunTiShi" runat="server" Text="" ForeColor="Red"></asp:Label>
                </div>
            </div>
            <%--添加--%>
            <asp:Panel ID="pl_deleupda" runat="server" Visible="False">
                <form class="fm">
                    <fieldset>
                        <legend class="fmlegend"><asp:Label ID="lbl_pltitle" runat="server" Text="Label">标题</asp:Label></legend>
                            <table class="tb1" cellspacing="12">
                                <tr>
                                    <td class="ri">用户Id：</td>
                                    <td><asp:TextBox ID="txt_plid" CssClass="txt" runat="server"></asp:TextBox></td>
                                    <td><span class="tdright_span">&nbsp;&nbsp; &nbsp;游戏Id：</span></td>
                                    <td>
                                        <asp:TextBox ID="txt_plgmid" CssClass="txt" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="ri">支付金额：</td>
                                    <td><asp:TextBox ID="txt_plprice" CssClass="txt" runat="server"></asp:TextBox></td>
                                    <td class="ri">支付金币：</td>
                                    <td><asp:TextBox ID="txt_plgoid" CssClass="txt" runat="server"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td>下单时间：</td>
                                    <td>
                                        <asp:TextBox CssClass="txt" onfocus="WdatePicker()" ID="txt_pldate" runat="server"></asp:TextBox>
                                    </td>
                                    <td colspan="2">
                                        <asp:Button ID="txt_plctrls" CssClass="bc" OnClick="txt_plctrls_Click" runat="server" Text="保存" />
                                        <asp:Button ID="btn_plgb" CssClass="bc" OnClick="btn_plgb_Click" runat="server" Text="关闭" />
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td></td>
                                    <td class="ri"><asp:Label ID="lbl_plbcts" runat="server" Text="" Visible="True" ForeColor="Red"></asp:Label></td>
                                </tr>
                            </table>
                    </fieldset>
                </form>
            </asp:Panel>

            <%--修改--%>
            <asp:Panel ID="Pl_update" runat="server" Visible="False">
                <form class="fm">
                    <fieldset>
                        <legend class="fmlegend">
                            <asp:Label ID="lbl_pl2orid" runat="server" Text="Label" Visible="False"></asp:Label><asp:Label ID="Label1" runat="server" Text="Label">修改信息</asp:Label></legend>
                            <table class="tb1" cellspacing="12">
                                <tr>
                                    <td class="ri">用户Id：</td>
                                    <td><asp:TextBox ID="txt_pl2usid" CssClass="txt" runat="server"></asp:TextBox></td>
                                    <td><span class="tdright_span">&nbsp;&nbsp; &nbsp;游戏Id：</span></td>
                                    <td>
                                        <asp:TextBox ID="txt_pl2gmid" CssClass="txt" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="ri">支付金额：</td>
                                    <td><asp:TextBox ID="txt_pl2price" CssClass="txt" runat="server"></asp:TextBox></td>
                                    <td class="ri">支付金币：</td>
                                    <td><asp:TextBox ID="txt_pl2goid" CssClass="txt" runat="server"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <td>下单时间：</td>
                                    <td><asp:TextBox CssClass="txt" onfocus="WdatePicker()" ID="txt_pl2date" runat="server"></asp:TextBox></td>
                                    <td colspan="2">
                                        <asp:Button ID="btn_pl2bc" CssClass="bc" OnClick="btn_pl2bc_Click" runat="server" Text="保存" />
                                        <asp:Button ID="btn_pl2bg" CssClass="bc" OnClick="Button2_Click"  runat="server" Text="关闭" />
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td></td>
                                    <td class="ri"><asp:Label ID="lbl_pl2bcts" runat="server" Text="" Visible="True" ForeColor="Red"></asp:Label></td>
                                </tr>
                            </table>
                    </fieldset>
                </form>
            </asp:Panel>
            <%--用户信息展示--%>
            <div class="selelogo2">
                展示区<img class="tubiao" src="../Player图片/图标/后台管理/zhanshi.png" />
            </div>
            <table id="tb2">
                <tr>
                    <th>用户名称</th>
                    <th>游戏名称</th>
                    <th>支付金额</th>
                    <th>支付金币</th>
                    <th>下单时间</th>
                    <th>管理员操作</th>
                </tr>
                <asp:Repeater ID="rptorders" runat="server">
                    <ItemTemplate>
                    <tr>
                        <td><%#UsIdisName(Eval("Or_UsId").ToString())%></td>
                        <td><%#GmIdisName(Eval("Or_GmId").ToString())%></td>
                        <td><%#Eval("Or_Price") %></td>
                        <td><%#Eval("Or_Goid") %></td>
                        <td><%#Eval("Or_Date") %></td>
                        <td><a href='<%# "orders.aspx?deid="+Eval("Or_Id") %>'>删除</a> <a href='<%# "orders.aspx?upid="+Eval("Or_Id") %>'>修改</a></td>
                    </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
    </div>
</asp:Content>
